{template modoer_header}
<div id="body">
    <div class="ix_foo mt10">
        <div class="ix1_left">
            <script type="text/javascript" src="{URLROOT}/static/javascript/jquery.d.imagechange.js"></script>
            <div class="l1_pics" id="l1_pics">
                {get:modoer val=bcastr(groupname/index/city_id/_NULL_CITYID_/cachetime/1000)}
                <a href="$val[item_url]" title="$val[itemtitle]" target="_blank"><img src="{URLROOT}/$val[link]" height="200" width="348" /></a>
                {/get}
            </div>
            <script type="text/javascript">
                $('#l1_pics').d_imagechange({width:300,height:250,repeat:'repeat'});
            </script>
        </div>
        <div class="ix1_center">
            <ul class="hl">
                {get:modoer val=table(table/dbpre_articles/select/articleid,subject,introduce/where/att=1 AND city_id IN (_NULL_CITYID_) AND status=1/orderby/listorder/rows/1/cachetime/1000)}
                <li>
                    <h2><a href="{url article/detail/id/$val[articleid]}">$val[subject]</a></h2>
                    <p>{sublen $val[introduce],52,'...'}...</p>
                </li>
                {/get}
            </ul>
            <div class="ix1_line"></div>
            <ul class="hl2">
                {get:modoer val=table(table/dbpre_articles/select/articleid,subject,catid,author,dateline/where/att=2 AND city_id IN (_NULL_CITYID_) AND status=1/orderby/listorder/rows/8/cachetime/1000)}
                <li><a href="{url article/detail/id/$val[articleid]}" title="$val[subject]">{sublen $val[subject],13}</a></li>
                {/get}
            </ul>
            <div class="clear"></div>
            <ul class="hl3">
                {get:modoer val=table(table/dbpre_articles/select/articleid,subject,thumb/where/att=3 AND city_id IN (_NULL_CITYID_) AND status=1/orderby/listorder/rows/4/cachetime/1000)}
                <li><div><a href="{url article/detail/id/$val[articleid]}"><img src="{URLROOT}/$val[thumb]" width="88" height="60" title="$val[subject]" /></a></div></li>
                {/get}
            </ul>
        </div>

        <div class="ix1_right">
            <div class="operation">
                <!--{if !$user->isLogin}-->
                <a class="l mb10" href="{url member/login}">会员登录</a>
                <a class="r mb10" href="{url member/reg}">马上注册</a>
                <!--{else}-->
                <a class="l mb10" href="{url member/index}">我的助手</a>
                <a class="r mb10" href="{url member/index/ac/pm}">短信息</a>
                <!--{/if}-->
                <a class="l" href="{url review/member/ac/add}">发表点评</a>
                <a class="r" href="{url item/member/ac/subject_add}">添加主题</a>
            </div>
            <div class="clear"></div>
            <ul class="ann mt10">
                <h2><a href="{url index/announcement/do/list}">网站公告</a></h2>
                {get:modoer val=table(table/dbpre_announcements/select/city_id,id,title,dateline/where/city_id IN (_NULL_CITYID_) AND available=1/orderby/orders/rows/5/cachetime/1000)}
                <li><div><a href="{url index/announcement/id/$val[id]}">{sublen $val[title],18}</a></div></li>
                {/get}
            </ul>
        </div>
        <div class="clear"></div>
    </div>

    <div class="index_1">
        <div class="ixf_left">
            <!-- 推荐主题 begin -->
            <div class="ix_foo mt10">
                <h3 class="ix_title"><span class="icomoon icon-heart2"></span>推荐主题</h3>
                <div class="ix_left1_more">
                    <div class="ix_tab">
                        <div id="btn_subject1" class="selected"><a href="javascript:;" onclick="tabSelect(1,'subject')" onfocus="this.blur()">综合</a></div>
                        <a href="javascript:;" id="head_topmenu_src" rel="finer_cate_box">分类<span class="icomoon-r icon-arrow-down"></span></a>
                        <span class="xsplit">|</span>
                        <a href="{url item/category}">更多&nbsp;&raquo;</a>
                    </div>
                </div>
                <div class="ix_left1_body" id="subject1" style="min-height:270px; _height:245px;overflow:visible;">
                    <ul class="index_subject_pic">
                        {get:modoer val=table(table/dbpre_subject/select/sid,aid,name,subname,avgsort,thumb,description/where/status=1 AND finer>0 AND city_id IN(_NULL_CITYID_)/orderby/finer DESC/rows/10/cachetime/1000)}
                        <li>
                            <div><a href="{url item/detail/id/$val[sid]}"><img src="{URLROOT}/{if $val[thumb]}$val[thumb]{else}static/images/noimg.gif{/if}" alt="$val[name].$val[subname]" title="$val[name].$val[subname]" /></a></div>
                            <p><a href="{url item/detail/id/$val[sid]}" title="$val[name].$val[subname]">{sublen $val[name].$val[subname],10}</a></p>
                        </li>
                        {/get}
                    </ul>
                </div>
                <!--{eval $i=2;}-->
                {get:item val=category(pid/0)}
                <div class="ix_left1_body none" style="height:270px;_height:245px;" id="subject$i" datacallname="首页_推荐主题" params="{'city_id':'{_NULL_CITYID_}','pid':'$val[catid]'}"></div>
                <!--{eval $i++;}-->
                {/get}
            </div>
            <!--全部分类浮动菜单 -->
            <div id="finer_cate_box" class="finer_cate_list none">
                <ul>
                    <!--{eval $i=2;}-->
                    {get:item val=category(pid/0)}
                    <li id="btn_subject$i">
                        <a href="javascript:;" onclick="tabSelect($i,'subject')" onfocus="this.blur()">$val[name]</a>
                    </li>
                    <!--{eval $i++;}-->
                    {/get}
                </ul>
            </div>
            <!-- 推荐主题 end -->

            <!-- 需要加载的广告位置 -->
            <div id="adv_1">
                {include display('adv:show','name/首页_中部广告')}
            </div>

            <!-- 点评动态 begin -->
            <div class="ix_foo mt10">
            <h3 class="ix_title"><span class="icomoon icon-feed"></span>点评动态</h3>
                <div class="ix_left1_more"><a href="{url review/list}">更多&nbsp;&raquo;</a></div>
                <div class="ixf_left_l">
                    <div class="ix_left1_body" style="margin-left:10px;">
                        <!--{get:review val=review(city_id/_NULL_CITYID_/orderby/posttime DESC/rows/3/cachetime/500)}-->
                        <div class="ix_review">
                            {eval if($val[hide_name])$val[uid]=0;}
                            <div class="member">
                                {if $val[uid]>0}
                                <a href="{url space/index/uid/$val[uid]}"><img src="{print get_face($val[uid])}" class="face"></a>
                                {else}
                                <img src="{print get_face($val[uid])}" class="face">
                                {/if}
                            </div>
                            <div class="field">
                                <div class="feed">
                                    <!--{if $val[uid]}-->
                                    <span class="icomoon icon-user"></span><a href="{url space/index/uid/$val[uid]}">$val[username]</a>
                                    <!--{else}-->
                                    <span class="font_3">{if $val[hide_name]}匿名会员{else}游客{/if}</span>
                                    <!--{/if}-->
                                    @ <strong><a href="{print:review typeurl(idtype/$val[idtype]/id/$val[id])}">{sublen $val[subject],10,'...'}</a></strong>
                                </div>
                                <div class="info">
                                    <ul class="score">
                                        <!--{get:review _val=reviewopt(catid/$val[pcatid])}-->
                                        <li>{$_val[name]}:<span class="font_2">{$val[$_val[flag]]}</span></li>
                                        <!--{/get}-->
                                    </ul>
                                    <div class="clear"></div>
                                    <div class="content">
                                        <!--{if $val[voice_file]}-->
                                        <div class="voicefile" id="voicefile_$val[rid]" style="margin-top:5px;">
                                            <object type="application/x-shockwave-flash" data="{URLROOT}/static/images/dewplayer-mini.swf?mp3={URLROOT}/$val[voice_file]" width="160" height="20" id="dewplayer-mini"><param name="wmode" value="transparent" /><param name="movie" value="{URLROOT}/static/images/dewplayer-mini.swf?mp3={URLROOT}/$val[voice_file]" /></object>
                                        </div>
                                        <!--{else}-->
                                        <!--{eval $reviewurl = '...<a href="' . url("review/detail/id/".$val[rid]) . '">查看全文</a>';}-->
                                        <p>{sublen $val[content],30,$reviewurl}</p>
                                        <!--{/if}-->
                                    </div>
                                </div>
                            </div>
                            <div class="clear"></div>
                        </div>
                        <!--{/get}-->
                    </div>
                </div>
                <div class="ixf_left_r">
                    <script type="text/javascript" src="{URLROOT}/static/javascript/marquee.js"></script>
                    <div class="ix_left1_body" id="index_feed" style="height:320px;overflow:hidden;">
                        <ul class="index_feed">
                            <!--{get:member val=feed(city_id/_NULL_CITYID_/rows/10)}-->
                            <li>
                                <div class="member">
                                    <a href="{url space/index/uid/$val[uid]}"><img src="{print get_face($val[uid])}" class="face"></a>
                                </div>
                                <div class="content">
                                    <h4>$val[title]<span>{date $val[dateline],'w2style'}</span></h4>
                                    <!--{if $val[images]}-->
                                    <div class="content-images">
                                    <!--{eval $images=unserialize($val[images]);}-->
                                    <!--{loop $images $img}-->
                                    <a href="$img[link]"><img src="$img[url]" /></a>
                                    <!--{/loop}-->
                                    </div>
                                    <!--{else}-->
                                    <p>$val[body]</p>
                                    <!--{/if}-->
                                </div>
                                <div class="clear"></div>
                            </li>
                            <!--{/get}-->
                            <div class="clear"></div>
                        </ul>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
            <!-- 点评动态 end -->

            <!-- 小组 begin -->
            <div class="ix_foo mt10">
                <h3 class="ix_title"><span class="icomoon icon-users"></span>活跃小组</h3>
                <div class="ix_left1_more"><a href="{url group/index}">更多&nbsp;&raquo;</a></div>
                <div class="ixf_left_l" style="border-right:1px solid #eee;">
                    <div class="ix_left1_body">
                        <ul class="ix_grouplist">
                            {get:group val=get_group(city_id/_NULL_CITYID_/orderby/g.lastpost desc/rows/8/cachetime/2300)}
                            <li>
                                {eval if(!$val[icon]) $val['icon']='static/images/z_noimg.gif';}
                                <div class="gicon">
                                    <a href="{url group/$val[gid]}" title="$val[groupname]"><img src="{URLROOT}/$val[icon]" alt="$val[groupname]" title="$val[groupname]" /></a>
                                </div>
                                <div class="gtitle">
                                    <span><a href="group/$val[gid]" title="$val[groupname]">$val[groupname]</a></span>
                                </div>
                            </li>
                            {/get}
                        </ul>
                    </div>                    
                </div>
                <div class="ixf_left_r">
                    <ul class="rail-list ix_topiclist">
                        {get:group val=get_topic(city_id/_NULL_CITYID_/orderby/gt.dateline desc/rows/9/cachetime/2500)}
                        <li><span class="groupname">[<a title="$val[groupname]" href="{url group/$val[gid]}">{sublen $val[groupname],8}</a>]</span><a href="{url group/topic/id/$val[tpid]}" title="$val[subject]">{sublen $val[subject],15,'...'}</a></li>
                        {/get}
                    </ul>
                </div>
                <div class="clear"></div>
            </div>
            <!-- 小组 end -->

            <!-- 最新图片 begin -->
            <div class="ix_foo mt10">
                <h3 class="ix_title"><span class="icomoon icon-images"></span>最新图片</h3>
                <div class="ix_left1_more">
                    <a href="{url item/albums}">相册&nbsp;&raquo;</a>
                </div>
                <div class="ix_left1_body" style="height:90px;">
                    <ul class="index_pic">
                    <!--{get:item val=picture(select/picid,title,thumb,sid/city_id/0,$_CITY[aid]/orderby/addtime DESC/rows/7/cachetime/1000)}-->
                    <li><div><a href="{url item/detail/id/$val[sid]}"><img src="{URLROOT}/$val[thumb]" alt="$val[title]" title="$val[title]" /></a><b></b></div></li>
                    <!--{/get}-->
                    </ul>
                </div>
            </div>
            <!-- 最新图片 end -->
        </div>

        <div class="ixf_right">

            <!--{if check_module('mylist')}-->
            <div class="ix_foo mt10">
                <div class="ix_right_body">
                    <h2 style="margin-bottom:10px;"><a href="{url mylist/index}">热门榜单</a></h2>
                    <ul class="rail-list" style="min-height:50px;">
                        {get:mylist val=get_mylist(city_id/_CITYID_/orderby/m.pageviews desc/rows/10/cachetime/2150)}
                        <li><a href="{url mylist/$val[id]}" title="$val[title]">$val[title]</a></li>
                        {/get}
                    </ul>
                    <div class="clear"></div>
                </div>
            </div>
            <!--{/if}-->
            
            <!-- 会员卡 begin -->
            <!--{if check_module('card')}-->
            <div class="ix_foo mt10">
                <div class="ix_right_body" style="height:220px;">
                    <h2><a href="{url card/index}">会员卡折扣</a></h2>
                    <ul class="ix_card">
                    {get:card val=list_finer(city_id/$_CITY[aid]/row/10/cachetime/1000)}
                    <li><cite>$val[discount]&nbsp;折</cite><a href="{url item/detail/id/$val[sid]}">{sublen trim($val[name].$val[subname]),15}</a></li>
                    {/get}
                    </ul>
                </div>
            </div>
            <!--{/if}-->
            <!-- 会员卡 end -->

            <!-- 热门优惠券 begin -->
            <!--{if check_module('exchange')}-->
            <div class="ix_foo mt10">
                <div class="ix_right_body">
                    <h2><a href="{url coupon/index}">优惠券</a></h2>
                    <ul class="ix_coupon">
                    {get:coupon val=list_new(city_id/$_CITY[aid]/row/7/cachetime/1000)}
                        <!--{if $val_k <= 1}-->
                            <li class="thumb"><a href="{url coupon/detail/id/$val[couponid]}" title="$val[subject]"><img src="{URLROOT}/$val[thumb]" alt="$val[subject]" /></a></li>
                        <!--{else}-->
                            <li class="c"><cite>{date $val[dateline], 'm-d'}</cite><a href="{url coupon/detail/id/$val[couponid]}">{sublen $val[subject],15}</a></li>
                        <!--{/if}-->
                    {/get}
                    </ul>
                    <div class="clear"></div>
                </div>
            </div>
            <!--{/if}-->
            <!-- 热门优惠券 end -->

            <div class="ix_foo mt10">
                <div class="ix_right_body" style="height:305px; _height:317px; overflow:hidden;">
                    <h2 style="margin-bottom:10px;"><a href="{url review/index}">点评专家</a></h2>
                    <ul class="rail-list">
                        <!--{get:modoer val=table(table/dbpre_members/select/uid,username,reviews/where/reviews>0/orderby/reviews DESC/rows/10/cachetime/3600)}-->
                        <li><img src="{print get_face($val[uid]);}" width="20" height="20" /><cite>$val[reviews]&nbsp;点评</cite><a href="{url space/index/uid/$val[uid]}">$val[username]</a></li>
                        <!--{/get}-->
                        <div class="clear"></div>
                    </ul>
                </div>
            </div>

            <!-- 最新标签 begin -->
            <div class="ix_foo mt10">
                <div class="ix_right_body">
                    <h2><a href="{url item/tag}">最新标签</a></h2>
                    <div class="ix_tag" style="min-height:50px;">
                        {get:item val=tag(city_id/0,$_CITY[aid]/orderby/dateline DESC/row/20/cachetime/1000)}
                        <span><a href="{url item/tag/tagid/$val[tagid]}"{if $val[total]} class="{print:item tagclassname(total/$val[total])}"{/if}>{sublen $val[tagname],6}</a></span>
                        {/get}
                    </div>
                </div>
            </div>
            <!-- 最新标签 end -->

        </div>
        <div class="clear"></div>
    </div>

    <!-- 友情链接 begin -->
    <!--{if check_module('link')}-->
    <div class="ix_foo">
        <h3 class="ix_title"><span class="icomoon icon-link"></span>友情链接</h3>
        <div class="ix_left1_more">
            <a href="{url link/apply}">友链申请</a>
            <span class="xsplit">|</span>
            <a href="{url link/index}">全部&nbsp;&raquo;</a>
        </div>
        <div class="index_links">
            <div class="links">
                {get:link val=links(city_id/_NULL_CITYID_/type/char/cachetime/1000)}
                <a href="$val[link]" title="$val[des]" target="_blank">$val[title]</a>
                {/get}
            </div>
            <div class="line"></div>
            <div class="links">
                {get:link val=links(city_id/_NULL_CITYID_/type/logo/cachetime/1100)}
                <a href="$val[link]" title="$val[des]" target="_blank"><img src="$val[logo]" alt="$val[title]" /></a>
                {/get}
            </div>
        </div>
    </div>
    <!--{/if}-->
    <!-- 友情链接 end -->

</div>
<script type="text/javascript">
$("#head_topmenu_src").powerFloat({
    position:"3-2",
    reverseSharp:true
});
//会员动态滚动
new Marquee("index_feed", "top", 1, $('#index_feed').width(), $('#index_feed').height(), 1, 5000, 1);
</script>
<!--{eval footer();}-->